require('./Pagejdzfhome.less');
import Reflux from 'reflux';
import ReactMixin from 'react-mixin';
import Store from './Store';
import {Page} from  'react-weui/build/packages'


class Jdzfhome extends React.Component {

  constructor(props) {
    super(props);
  }


  render() {
    return (
      <Page infiniteLoader={false} ptr={false}>
        {this.props.children}
      </Page>
    );
  }

  componentWillMount() {

  }

  componentDidMount() {

  }

  componentWillReceiveProps(nextProps) {

  }

  shouldComponentUpdate(nextProps, nextState) {
    const thisProps = this.props || {},
      thisState = this.state.jdzfhome || {};
    if (Object.keys(thisProps).length !== Object.keys(nextProps).length ||
      Object.keys(thisState).length !== Object.keys(nextState).length) {
      return true;
    }

    for (const key in nextProps) {
      if (thisProps[key] !== nextProps[key]) {
        console.log(thisProps[key], nextProps[key]);
        return true;
      }
    }

    for (const key in nextState) {
      if (thisState[key] !== nextState[key]) {
        return true;
      }
    }
    return false;
  }

}

ReactMixin.onClass(Jdzfhome, Reflux.connect(Store, 'jdzfhome'));


export default Jdzfhome ;
